#ifndef SCRIPTEDITORDIALOG_H
#define SCRIPTEDITORDIALOG_H

#include <QDialog>


class ScriptEditorWidget;
class QSpacerItem;

class ScriptEditorDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ScriptEditorDialog(QWidget *parent = 0);

    QString scriptText() const;
    void setScriptText(const QString &text);
    bool findFunctionDeclaration(const QString &func);
    void appendFunction(const QString &funcName, const QStringList &params);

signals:

public slots:
    void cancel();

private:
    ScriptEditorWidget *editorWidget;

    QPushButton *buttonOk;
    QPushButton *buttonCancel;
    QSpacerItem *horizontalSpacer;
};

#endif // SCRIPTEDITORDIALOG_H
